<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="p"%>
<%
	String path = request.getContextPath();
	String root = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	request.setAttribute("root", root);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>MochaUI - A Web Applications User Interface Library</title>
<meta name="description" content="A web applications user interface library built on the Mootools javascript framework" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style>
ul li{line-height: 30px}
</style>
</head>
<body>
	<h4 style="text-align: center;">预收款导入列选择</h4>
	<form id="tpl_form" action="subtpl/save.action" method="post">
	  <input type="text" name="subTemplate.name" value="工资导入模板"/>
	  <input type="text" name="subTemplate.in2out" value="IN"/>
	  <input type="submit" value="submit"/>
	  <div id="pre_fee"></div>
	</form>
	<script>
		var str_1 = "hr_pre_fee-id-0;hr_pre_fee-name-1;hr_pre_fee-idcard-2;hr_pre_fee-eName-3;hr_pre_fee-payday-4;hr_pre_fee-wage-5;hr_pre_fee-baseNumber-6;hr_pre_fee-month-7;hr_pre_fee-pEndowmentFee-8;hr_pre_fee-pMedicalFee-9;hr_pre_fee-pUnemployedFee-10;hr_pre_fee-pAfFee-11;hr_pre_fee-pOutpatient-12;hr_pre_fee-pDiseaseFee-13;hr_pre_fee-pSum-14;hr_pre_fee-eEndowmentFee-15;hr_pre_fee-eMaternityFee-16;hr_pre_fee-eUnemployedFee-17;hr_pre_fee-eIndustrialFee-18;hr_pre_fee-eMedicalFee-19;hr_pre_fee-eAfFee-20;hr_pre_fee-eSum-21;hr_pre_fee-start-22;hr_pre_fee-end-23;hr_pre_fee-performanceFee-24;hr_pre_fee-seniorityFee-25;hr_pre_fee-annualBonusFee-26;hr_pre_fee-mealchargeFee-27;hr_pre_fee-correspondenceFee-28;hr_pre_fee-overtimeFee-29;hr_pre_fee-sickFee-30;hr_pre_fee-hourseBonusFee-31;hr_pre_fee-legworkFee-32;hr_pre_fee-deductionFee-33;hr_pre_fee-toEFee-34;hr_pre_fee-vehicleFee-35;hr_pre_fee-temperatureFee-36;hr_pre_fee-driverFee-37;hr_pre_fee-dutyFee-38;hr_pre_fee-attendanceFee-39;hr_pre_fee-bonus1Fee-40;hr_pre_fee-bonus2Fee-41;hr_pre_fee-bonus3Fee-42;hr_pre_fee-bonus4Fee-43;hr_pre_fee-bonus5Fee-44;hr_pre_fee-electricFee-45;hr_pre_fee-hourseFee-46;hr_pre_fee-unionFee-47;hr_pre_fee-serverFee-48;hr_pre_fee-otherFee-49;hr_pre_fee-annualFee-50;hr_pre_fee-cutrateFee-51;hr_pre_fee-withholdFee-52;hr_pre_fee-withholdUnionFee-53;hr_pre_fee-withholdServerFee-54;hr_pre_fee-donateFee-55;hr_pre_fee-legalDeductFee-56;hr_pre_fee-exemptOther-57;hr_pre_fee-reissueSum-58;hr_pre_fee-reissueMonth-59;hr_pre_fee-exemptSum-60;hr_pre_fee-actualWage-61;hr_pre_fee-deductSum-62;hr_pre_fee-taxableIncomeFee-63;hr_pre_fee-pIncomeTax-64;hr_pre_fee-shouldWage-65;hr_pre_fee-sheBaoSum-66;hr_pre_fee-total-67";
		var str_1_cb = "";
		for(var a = 0; a < str_1.split(";").length; a++){
			str_1_cb += "<input type='text' size='3' id='" + str_1.split(";")[a].split("-")[1] + "' value='" + str_1.split(";")[a].split("-")[2] + "'><input onclick='changeSort(this)' name='subTemplate.tpl' type='checkbox' value='" + str_1.split(";")[a] + "'/>" + str_1.split(";")[a].split("-")[1] + "<br/>";
		}
		document.getElementById("pre_fee").innerHTML = str_1_cb;
		
		function changeSort(t){
			var val = t.value;
			var infs = val.split("-");
			
			var s_sort = document.getElementById(infs[1]).value;
			t.value = infs[0] + "-" + infs[1] + "-" + s_sort;
		}
	</script>
	
	<h4 style="text-align: center;">预收工资导入列选择</h4>
	<form id="tpl_form" action="subtpl/save.action" method="post">
	  <input type="text" name="subTemplate.name" value="预收工资导入"/>
	  <input type="text" name="subTemplate.in2out" value="IN"/>
	  <input type="submit" value="submit"/>
	  <div id="pre_fee2"></div>
	</form>
	<script>
		var str_2 = "hr_pre_fee-id-0;hr_pre_fee-name-1;hr_pre_fee-idcard-2;hr_pre_fee-eName-3;hr_pre_fee-payday-4;hr_pre_fee-wage-5;hr_pre_fee-baseNumber-6;hr_pre_fee-month-7;hr_pre_fee-pEndowmentFee-8;hr_pre_fee-pMedicalFee-9;hr_pre_fee-pUnemployedFee-10;hr_pre_fee-pAfFee-11;hr_pre_fee-pOutpatient-12;hr_pre_fee-pDiseaseFee-13;hr_pre_fee-pSum-14;hr_pre_fee-eEndowmentFee-15;hr_pre_fee-eMaternityFee-16;hr_pre_fee-eUnemployedFee-17;hr_pre_fee-eIndustrialFee-18;hr_pre_fee-eMedicalFee-19;hr_pre_fee-eAfFee-20;hr_pre_fee-eSum-21;hr_pre_fee-start-22;hr_pre_fee-end-23;hr_pre_fee-performanceFee-24;hr_pre_fee-seniorityFee-25;hr_pre_fee-annualBonusFee-26;hr_pre_fee-mealchargeFee-27;hr_pre_fee-correspondenceFee-28;hr_pre_fee-overtimeFee-29;hr_pre_fee-sickFee-30;hr_pre_fee-hourseBonusFee-31;hr_pre_fee-legworkFee-32;hr_pre_fee-deductionFee-33;hr_pre_fee-toEFee-34;hr_pre_fee-vehicleFee-35;hr_pre_fee-temperatureFee-36;hr_pre_fee-driverFee-37;hr_pre_fee-dutyFee-38;hr_pre_fee-attendanceFee-39;hr_pre_fee-bonus1Fee-40;hr_pre_fee-bonus2Fee-41;hr_pre_fee-bonus3Fee-42;hr_pre_fee-bonus4Fee-43;hr_pre_fee-bonus5Fee-44;hr_pre_fee-electricFee-45;hr_pre_fee-hourseFee-46;hr_pre_fee-unionFee-47;hr_pre_fee-serverFee-48;hr_pre_fee-otherFee-49;hr_pre_fee-annualFee-50;hr_pre_fee-cutrateFee-51;hr_pre_fee-withholdFee-52;hr_pre_fee-withholdUnionFee-53;hr_pre_fee-withholdServerFee-54;hr_pre_fee-donateFee-55;hr_pre_fee-legalDeductFee-56;hr_pre_fee-exemptOther-57;hr_pre_fee-reissueSum-58;hr_pre_fee-reissueMonth-59;hr_pre_fee-exemptSum-60;hr_pre_fee-actualWage-61;hr_pre_fee-deductSum-62;hr_pre_fee-taxableIncomeFee-63;hr_pre_fee-pIncomeTax-64;hr_pre_fee-shouldWage-65;hr_pre_fee-sheBaoSum-66;hr_pre_fee-total-67";
		var str_2_cb = "";
		for(var a = 0; a < str_2.split(";").length; a++){
			str_2_cb += "<input size='3' type='text' id='" + str_2.split(";")[a].split("-")[1] + "' value='" + str_2.split(";")[a].split("-")[2] + "'><input onclick='changeSort2(this)' name='subTemplate.tpl' type='checkbox' value='" + str_2.split(";")[a] + "'/> " + str_2.split(";")[a].split("-")[1] + "<br/>";
		}
		document.getElementById("pre_fee2").innerHTML = str_2_cb;
		
		function changeSort2(t){
			var val = t.value;
			var infs = val.split("-");
			
			var s_sort = document.getElementById(infs[1]).value;
			t.value = infs[0] + "-" + infs[1] + "-" + s_sort;
		}
	</script>
	
</body>
</html>
